home *** CD-ROM | disk | FTP | other *** search
- gStrColors = '$$$/Dialogs/HTML2PDF/TextSettings/General/Colors';
- gStrText = '$$$/Dialogs/HTML2PDF/TextSettings/General/Text';
- gStrBackground = '$$$/Dialogs/HTML2PDF/TextSettings/General/Background';
- gStrLineWrapOptions = '$$$/Dialogs/HTML2PDF/TextSettings/General/LineWrapOptions';
- gStrWrapLines = '$$$/Dialogs/HTML2PDF/TextSettings/General/WrapLines';
- gStrReflow = '$$$/Dialogs/HTML2PDF/TextSettings/General/Reflow';
- gStrLayoutOptions = '$$$/Dialogs/HTML2PDF/TextSettings/General/LayoutOptions';
- gStrLimitLines = '$$$/Dialogs/HTML2PDF/TextSettings/General/LimitLines';
- gStrMaxLines = '$$$/Dialogs/HTML2PDF/TextSettings/General/MaxLines';
-
- gColorTextWidth = max ( zstring_width( zstring: gStrText )
- , zstring_width( zstring: gStrBackground )
- ) + max_char_width();
- gColorWellWidth = 22;
- gTestWidth1 = gColorTextWidth + gColorWellWidth + max_char_width();
-
- gMaxLinesEditWidth = max_char_width() * 3;
- gMaxLinesWidth = zstring_width( zstring: gStrMaxLines ) + gMaxLinesEditWidth + gMarginWidth;
- gTestWidth2 = max ( gMaxLinesWidth
- , zstring_width( zstring: gStrWrapLines )
- , zstring_width( zstring: gStrReflow )
- , zstring_width( zstring: gStrReflow )
- );
-
- gColumnWidth = max( gTestWidth1, gTestWidth2 ) / 2;
-
- dialog( )
- {
- view( align_children: align_left )
- {
- cluster( name: gStrColors )
- {
- view( align_children: align_row )
- {
- view( align_children: align_row, width: gColumnWidth )
- {
- view( align_children: align_left, width: gColorTextWidth )
- {
- static_text( item_id: 'st01', name: gStrText, next_tab: 'colr' );
- }
- view( align_children: align_right )
- {
- button( item_id: 'colr', picture: true, height: 20, width: gColorWellWidth, next_tab: 'st02' );
- }
- }
- gap();
- view( align_children: align_row, width: gColumnWidth )
- {
- view( align_children: align_left, width: gColorTextWidth )
- {
- static_text( item_id: 'st02', name: gStrBackground, next_tab: 'back' );
- }
- view( align_children: align_right )
- {
- button( item_id: 'back', picture: true, height: 20, width: gColorWellWidth, next_tab: 'wrap' );
- }
- }
- }
- }
- cluster( name: gStrLineWrapOptions )
- {
- view( align_children: align_row )
- {
- view( align_children: align_row, width: gColumnWidth )
- {
- check_box(item_id: 'wrap', name: gStrWrapLines, next_tab: 'refl' );
- }
- view( align_children: align_row, width: gColumnWidth )
- {
- check_box(item_id: 'refl', name: gStrReflow, next_tab: 'liml' );
- }
- }
- }
- cluster( name: gStrLayoutOptions )
- {
- view( align_children: align_row )
- {
- view( align_children: align_row, width: gColumnWidth )
- {
- check_box(item_id: 'liml', name: gStrLimitLines, next_tab: 'st03' );
- }
- gap();
- view( align_children: align_row, width: gColumnWidth )
- {
- static_text( item_id: 'st03', name: gStrMaxLines, next_tab: 'mxln' );
- edit_text(item_id: 'mxln', PopupEdit: true, numeric: true, width: gMaxLinesEditWidth );
- }
- }
- }
- }
- }